package com.jiao.bean;

import java.util.ArrayList;
import java.util.List;

public class TTradeQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public TTradeQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(String value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(String value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(String value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(String value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(String value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(String value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLike(String value) {
            addCriterion("createDate like", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotLike(String value) {
            addCriterion("createDate not like", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<String> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<String> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(String value1, String value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(String value1, String value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andMonthIsNull() {
            addCriterion("month is null");
            return (Criteria) this;
        }

        public Criteria andMonthIsNotNull() {
            addCriterion("month is not null");
            return (Criteria) this;
        }

        public Criteria andMonthEqualTo(Integer value) {
            addCriterion("month =", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotEqualTo(Integer value) {
            addCriterion("month <>", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThan(Integer value) {
            addCriterion("month >", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("month >=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThan(Integer value) {
            addCriterion("month <", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThanOrEqualTo(Integer value) {
            addCriterion("month <=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthIn(List<Integer> values) {
            addCriterion("month in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotIn(List<Integer> values) {
            addCriterion("month not in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthBetween(Integer value1, Integer value2) {
            addCriterion("month between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("month not between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andIncomeIsNull() {
            addCriterion("income is null");
            return (Criteria) this;
        }

        public Criteria andIncomeIsNotNull() {
            addCriterion("income is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeEqualTo(Integer value) {
            addCriterion("income =", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeNotEqualTo(Integer value) {
            addCriterion("income <>", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeGreaterThan(Integer value) {
            addCriterion("income >", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeGreaterThanOrEqualTo(Integer value) {
            addCriterion("income >=", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeLessThan(Integer value) {
            addCriterion("income <", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeLessThanOrEqualTo(Integer value) {
            addCriterion("income <=", value, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeIn(List<Integer> values) {
            addCriterion("income in", values, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeNotIn(List<Integer> values) {
            addCriterion("income not in", values, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeBetween(Integer value1, Integer value2) {
            addCriterion("income between", value1, value2, "income");
            return (Criteria) this;
        }

        public Criteria andIncomeNotBetween(Integer value1, Integer value2) {
            addCriterion("income not between", value1, value2, "income");
            return (Criteria) this;
        }

        public Criteria andOutgoveIsNull() {
            addCriterion("outGove is null");
            return (Criteria) this;
        }

        public Criteria andOutgoveIsNotNull() {
            addCriterion("outGove is not null");
            return (Criteria) this;
        }

        public Criteria andOutgoveEqualTo(Integer value) {
            addCriterion("outGove =", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveNotEqualTo(Integer value) {
            addCriterion("outGove <>", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveGreaterThan(Integer value) {
            addCriterion("outGove >", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveGreaterThanOrEqualTo(Integer value) {
            addCriterion("outGove >=", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveLessThan(Integer value) {
            addCriterion("outGove <", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveLessThanOrEqualTo(Integer value) {
            addCriterion("outGove <=", value, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveIn(List<Integer> values) {
            addCriterion("outGove in", values, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveNotIn(List<Integer> values) {
            addCriterion("outGove not in", values, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveBetween(Integer value1, Integer value2) {
            addCriterion("outGove between", value1, value2, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutgoveNotBetween(Integer value1, Integer value2) {
            addCriterion("outGove not between", value1, value2, "outgove");
            return (Criteria) this;
        }

        public Criteria andOutindividuIsNull() {
            addCriterion("outIndividu is null");
            return (Criteria) this;
        }

        public Criteria andOutindividuIsNotNull() {
            addCriterion("outIndividu is not null");
            return (Criteria) this;
        }

        public Criteria andOutindividuEqualTo(Integer value) {
            addCriterion("outIndividu =", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuNotEqualTo(Integer value) {
            addCriterion("outIndividu <>", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuGreaterThan(Integer value) {
            addCriterion("outIndividu >", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuGreaterThanOrEqualTo(Integer value) {
            addCriterion("outIndividu >=", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuLessThan(Integer value) {
            addCriterion("outIndividu <", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuLessThanOrEqualTo(Integer value) {
            addCriterion("outIndividu <=", value, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuIn(List<Integer> values) {
            addCriterion("outIndividu in", values, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuNotIn(List<Integer> values) {
            addCriterion("outIndividu not in", values, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuBetween(Integer value1, Integer value2) {
            addCriterion("outIndividu between", value1, value2, "outindividu");
            return (Criteria) this;
        }

        public Criteria andOutindividuNotBetween(Integer value1, Integer value2) {
            addCriterion("outIndividu not between", value1, value2, "outindividu");
            return (Criteria) this;
        }

        public Criteria andResiduegroveIsNull() {
            addCriterion("residueGrove is null");
            return (Criteria) this;
        }

        public Criteria andResiduegroveIsNotNull() {
            addCriterion("residueGrove is not null");
            return (Criteria) this;
        }

        public Criteria andResiduegroveEqualTo(Integer value) {
            addCriterion("residueGrove =", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveNotEqualTo(Integer value) {
            addCriterion("residueGrove <>", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveGreaterThan(Integer value) {
            addCriterion("residueGrove >", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveGreaterThanOrEqualTo(Integer value) {
            addCriterion("residueGrove >=", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveLessThan(Integer value) {
            addCriterion("residueGrove <", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveLessThanOrEqualTo(Integer value) {
            addCriterion("residueGrove <=", value, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveIn(List<Integer> values) {
            addCriterion("residueGrove in", values, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveNotIn(List<Integer> values) {
            addCriterion("residueGrove not in", values, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveBetween(Integer value1, Integer value2) {
            addCriterion("residueGrove between", value1, value2, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResiduegroveNotBetween(Integer value1, Integer value2) {
            addCriterion("residueGrove not between", value1, value2, "residuegrove");
            return (Criteria) this;
        }

        public Criteria andResidueindividuIsNull() {
            addCriterion("residueIndividu is null");
            return (Criteria) this;
        }

        public Criteria andResidueindividuIsNotNull() {
            addCriterion("residueIndividu is not null");
            return (Criteria) this;
        }

        public Criteria andResidueindividuEqualTo(Integer value) {
            addCriterion("residueIndividu =", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuNotEqualTo(Integer value) {
            addCriterion("residueIndividu <>", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuGreaterThan(Integer value) {
            addCriterion("residueIndividu >", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuGreaterThanOrEqualTo(Integer value) {
            addCriterion("residueIndividu >=", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuLessThan(Integer value) {
            addCriterion("residueIndividu <", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuLessThanOrEqualTo(Integer value) {
            addCriterion("residueIndividu <=", value, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuIn(List<Integer> values) {
            addCriterion("residueIndividu in", values, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuNotIn(List<Integer> values) {
            addCriterion("residueIndividu not in", values, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuBetween(Integer value1, Integer value2) {
            addCriterion("residueIndividu between", value1, value2, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andResidueindividuNotBetween(Integer value1, Integer value2) {
            addCriterion("residueIndividu not between", value1, value2, "residueindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovIsNull() {
            addCriterion("accumulatedGov is null");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovIsNotNull() {
            addCriterion("accumulatedGov is not null");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovEqualTo(Integer value) {
            addCriterion("accumulatedGov =", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovNotEqualTo(Integer value) {
            addCriterion("accumulatedGov <>", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovGreaterThan(Integer value) {
            addCriterion("accumulatedGov >", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovGreaterThanOrEqualTo(Integer value) {
            addCriterion("accumulatedGov >=", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovLessThan(Integer value) {
            addCriterion("accumulatedGov <", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovLessThanOrEqualTo(Integer value) {
            addCriterion("accumulatedGov <=", value, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovIn(List<Integer> values) {
            addCriterion("accumulatedGov in", values, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovNotIn(List<Integer> values) {
            addCriterion("accumulatedGov not in", values, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovBetween(Integer value1, Integer value2) {
            addCriterion("accumulatedGov between", value1, value2, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedgovNotBetween(Integer value1, Integer value2) {
            addCriterion("accumulatedGov not between", value1, value2, "accumulatedgov");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuIsNull() {
            addCriterion("accumulatedIndividu is null");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuIsNotNull() {
            addCriterion("accumulatedIndividu is not null");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuEqualTo(Integer value) {
            addCriterion("accumulatedIndividu =", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuNotEqualTo(Integer value) {
            addCriterion("accumulatedIndividu <>", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuGreaterThan(Integer value) {
            addCriterion("accumulatedIndividu >", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuGreaterThanOrEqualTo(Integer value) {
            addCriterion("accumulatedIndividu >=", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuLessThan(Integer value) {
            addCriterion("accumulatedIndividu <", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuLessThanOrEqualTo(Integer value) {
            addCriterion("accumulatedIndividu <=", value, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuIn(List<Integer> values) {
            addCriterion("accumulatedIndividu in", values, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuNotIn(List<Integer> values) {
            addCriterion("accumulatedIndividu not in", values, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuBetween(Integer value1, Integer value2) {
            addCriterion("accumulatedIndividu between", value1, value2, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andAccumulatedindividuNotBetween(Integer value1, Integer value2) {
            addCriterion("accumulatedIndividu not between", value1, value2, "accumulatedindividu");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}